package com.chb.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: 陈海彬
 * @date: Created in 2023/9/25 15:17
 * @description: 用户实体类
 * @modified By:
 * @version: 1.0
 */
@Data
public class Staff {
    /*表id*/
    private Integer id;
    /*员工id*/
    private Integer staffid;
    /*员工姓名*/
    private String staffname;
    /*员工密码*/
    private String password;
    /*身份证号*/
    private String idcard;
    /*家庭地址*/
    private String address;
    /*联系方式*/
    private String phone;
    /*入职时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date entrytime;
    /*离职时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date leavetime;
    /*在职状态*/
    private Integer state;
    /*角色id*/
    private Integer roleid;
    /*部门id*/
    private Integer deptid;
    /*头像*/
    private String url;
    /*隶属分店id*/
    private Integer branchid;

    /*映射其他实体类*/

    /*角色类*/
    private Role role;
    /*部门类*/
    private Department department;
    /*店铺类*/
    private Branch branch;

    /*新店名*/
    private Integer newbranchid;
    /*新部门*/
    private Integer newdeptid;
}
